const Koa = require('koa')
const app = new Koa()
const fs = require('fs')
const config = require('./Config')
const Router = require('koa-router')
const con = require('./Controller')
let home = new Router()
con.forEach(item => {
    if(item.method && item.path && item.fn){
        home[item.method](item.path,item.fn)
    }
})
app.use(home.routes())
app.listen(2993);